//
//  HGDataBase.h
//  个人项目(豆瓣元旦作业)
//
//  Created by dllo on 16/1/8.
//  Copyright © 2016年 guoguo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "Movie.h"
@interface HGDataBase : NSObject

{
    sqlite3 *dbPoint;
}

//创建单例对象
+ (HGDataBase *)sharedHGDataBase;

//打开数据库
- (void)openDB;

//创建表单
- (void)createTable;

//插入数据
- (void)insertData:(Movie *)model;
//删除数据

- (void)deleteData:(Movie *)model;

//查询数据

- (NSMutableArray *)selectData;



@end

